//package com.longcai.piaojia.fragment;
//
//import android.os.Bundle;
//import android.support.annotation.Nullable;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//
//import com.longcai.piaojia.R;
//import com.longcai.piaojia.adapter.LatestDetailAdapter;
//import com.longcai.piaojia.conn.LatestDetailTopicGet;
//import com.longcai.piaojia.widget.NoScrollListView;
//import com.zcx.helper.bound.BoundView;
//import com.zcx.helper.bound.BoundViewHelper;
//import com.zcx.helper.scale.ScaleScreenHelperFactory;
//
//import java.io.Serializable;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * Created by Administrator on 2017/1/11.
// */
//public class LatestDetailTopicFragment extends BaseFragment {
//
//    @BoundView(R.id.fragment_latest_topic_lv) private NoScrollListView fragment_latest_topic_lv;
//    private LatestDetailAdapter adapter;
//    private List<LatestDetailTopicGet.MyEvalute> lists = new ArrayList<>();
//
//    public static  LatestDetailTopicFragment newInstance(List<LatestDetailTopicGet.MyEvalute> lists){
//        LatestDetailTopicFragment latestDetailTopicFragment = new LatestDetailTopicFragment();
//        Bundle bundle = new Bundle();
//        bundle.putSerializable("lists", (Serializable) lists);
//        //fragment保存参数，传入一个Bundle对象
//        latestDetailTopicFragment.setArguments(bundle);
//        return latestDetailTopicFragment;
//    }
//
//    @Nullable
//    @Override
//    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//
//        View view = BoundViewHelper.boundView(this, ScaleScreenHelperFactory.getInstance().loadView((ViewGroup) inflater.inflate(R.layout.fragment_latest_detail_web, null)));
//
//        fragment_latest_topic_lv.setAdapter(adapter = new LatestDetailAdapter(getActivity(), lists));
//
//        Bundle bundle = getArguments();
//
//        lists = (List<LatestDetailTopicGet.MyEvalute>) bundle.getSerializable("lists");
//
//        adapter.notifyDataSetChanged();
//
//        return view;
//    }
//}
